import QtQuick
import QtQuick.Controls
Button
{
    id:root
    property color defaultTextColor:"black"
    property color pressedTextColor:"white"
    text: "button"
    contentItem:Item{
        anchors.fill: parent

        Text{
            anchors.centerIn: parent
            text:root.text
            color:root.pressed?pressedTextColor:defaultTextColor
            font:root.font
        }

    }

    background: Rectangle{
        border.width: root.hovered?2:0

        color:Qt.rgba(0,0,0,0.2)
    }

}
